Add variable `scroll-preserve-screen-position-commands'.
authorJuri Linkov <juri@jurta.org>
Wed, 14 Apr 2010 00:11:21 +0000 (03:11 +0300)
committerJuri Linkov <juri@jurta.org>
Wed, 14 Apr 2010 00:11:21 +0000 (03:11 +0300)
commit57ea6675c1f28b43f95fee1dbd711490ae6945bf
tree4b733ef2e405734f086b553a00c0ae200b92f4c9
parent03543153eeed852e02027706aa4e9718b249e7c8
Add variable `scroll-preserve-screen-position-commands'.
http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00403.html

* window.c (Vscroll_preserve_screen_position_commands): New variable
with the default value as the list of Qscroll_down and Qscroll_up.
(window_scroll_pixel_based, window_scroll_line_based): Search the
last command in the list Vscroll_preserve_screen_position_commands
instead of comparing with Qscroll_up and Qscroll_down.

* mwheel.el (scroll-preserve-screen-position-commands):
Add mwheel-scroll to this list of commands.

* simple.el (scroll-preserve-screen-position-commands):
Add scroll-up-command, scroll-down-command, scroll-up-line,
scroll-down-line to this list of commands.
etc/NEWS
lisp/ChangeLog
lisp/mwheel.el
lisp/simple.el
src/ChangeLog
src/window.c